package com.example.springboot2.oa.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.example.springboot2.base.entity.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_car")
public class TCar extends BaseEntity {
  private String carId;
  private String carName;
  private String carType;
  private String carColor;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
  private Date createTime;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
  private Date updateTime;
  private int carState;
}
